package com.ys.entity.base;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_ReservedPayItem", catalog="Id")
public class TbReservedPayItem extends BaseEntity<TbReservedPayItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ReservedPayBid", nameJava="reservedPayBid", typeDataBase="varchar")
	private String reservedPayBid;
	@YsField(nameDataBase="UserMonthPerformanceId", nameJava="userMonthPerformanceId", typeDataBase="bigint")
	private Long userMonthPerformanceId;
	@YsField(nameDataBase="AccumulationFundCompany", nameJava="accumulationFundCompany", typeDataBase="decimal")
	private BigDecimal accumulationFundCompany;
	@YsField(nameDataBase="AccumulationFundPersonal", nameJava="accumulationFundPersonal", typeDataBase="decimal")
	private BigDecimal accumulationFundPersonal;
	@YsField(nameDataBase="Vbz", nameJava="vbz", typeDataBase="varchar")
	private String vbz;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbReservedPayItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getReservedPayBid() {
		return reservedPayBid;
	}
	public TbReservedPayItem setReservedPayBid(String reservedPayBid) {
		this.reservedPayBid = reservedPayBid;
		return this;
	}
	public Long getUserMonthPerformanceId() {
		return userMonthPerformanceId;
	}
	public TbReservedPayItem setUserMonthPerformanceId(Long userMonthPerformanceId) {
		this.userMonthPerformanceId = userMonthPerformanceId;
		return this;
	}
	public BigDecimal getAccumulationFundCompany() {
		return accumulationFundCompany;
	}
	public TbReservedPayItem setAccumulationFundCompany(BigDecimal accumulationFundCompany) {
		this.accumulationFundCompany = accumulationFundCompany;
		return this;
	}
	public BigDecimal getAccumulationFundPersonal() {
		return accumulationFundPersonal;
	}
	public TbReservedPayItem setAccumulationFundPersonal(BigDecimal accumulationFundPersonal) {
		this.accumulationFundPersonal = accumulationFundPersonal;
		return this;
	}
	public String getVbz() {
		return vbz;
	}
	public TbReservedPayItem setVbz(String vbz) {
		this.vbz = vbz;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbReservedPayItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbReservedPayItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbReservedPayItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbReservedPayItem tbReservedPayItem(
		String reservedPayBid,
		Long userMonthPerformanceId,
		BigDecimal accumulationFundCompany,
		BigDecimal accumulationFundPersonal,
		String vbz,
		Integer status
			) {
		TbReservedPayItem entity = new TbReservedPayItem();
		entity.setReservedPayBid(reservedPayBid);
		entity.setUserMonthPerformanceId(userMonthPerformanceId);
		entity.setAccumulationFundCompany(accumulationFundCompany);
		entity.setAccumulationFundPersonal(accumulationFundPersonal);
		entity.setVbz(vbz);
		entity.setStatus(status);
		return entity;
	}
}